<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <!-- 在遍历的过程中没有索引值 -->
        <span>没有索引</span>
        <ul>
            <li v-for="user in users" style="list-style: none;">{{user}}</li>
        </ul>
        <hr>
        <span>有索引</span>
        <ul>
            <li v-for="(user,index) in users" style="list-style: none;">{{index}}--------{{user}}</li>
        </ul>
    </div>
</body>
<script src="../js/http_cdn.bootcdn.net_ajax_libs_vue_2.6.6_vue.js"></script>
<script>
    new Vue({
        el: "#app",
        data: {
            users: ['Jack', 'Dowson', 'Smith', 'milk']
        },
    })
</script>

</html>
